#求解斐波那契数列前n项：
num=int(input("请输入你想要的Fibonacci数列项数:"))

def fib1(n):
    a, b = 1, 1
    for j in range(n - 1):
        a, b = b, a + b
    return a

if num <= 0:
    print("你逗傻子玩呢？")
else:
    print("前{}个斐波那契数为：".format(num))

for i in range(1, num + 1):
  print('{:4}'.format(fib1(i)), end='')    
  if i % 10 == 0:						
    print()							
